package com.slytherin.sns.spider.emun;

import lombok.Getter;

/**
 *  采集放种子来源
 */
@Getter
public enum SourceEnum {

    HD (1,"dian评"),
    CX(2,"xie程");

    private final Integer sourceCode;
    private final String sourceName;

    SourceEnum(Integer sourceCode, String sourceName) {
            this.sourceCode = sourceCode;
            this.sourceName = sourceName;
    }
    public static SourceEnum getSourceEnum(Integer sourceCode) {
        for (SourceEnum sourceEnum : SourceEnum.values()) {
            if (sourceCode.equals(sourceEnum.sourceCode)) {
                return sourceEnum;
            }
        }
        return null;
    }
}
